<?php
    require_once('__common.php');

    $no = isset($_GET['no'])  ? $_GET['no'] : null;
    $c = getDb('course',$no, 'no');
    $t = getDb('g4_member', $c['teacher'] , 'mb_no');
    $b = getDb('book', $c['bookcode'] , 'no');

    if(!$c) {
        alert('잘못된 선택입니다');
    }
    
    $c['pricenum'] = $c['price'];
    $b['pricenum'] = $b['price'];
    $c['price'] = number_format($c['price']);
    $b['price'] = number_format($b['price']);
    $c['starttime'] = encodeTime($c['starttime']);
    $tpl->print_('basic');
